﻿using System.Windows.Forms;
using TestContentTool.TestControls.CheckTest;
using TestContentTool.TestControls.InputTest;
using TestContentTool.TestControls.RadioTest;

namespace TestContentTool.TestControls
{
    class TestControlsFactory
    {
        public static CheckTestControl GetCheckTestControl()
        {
            var result = new CheckTestControl(new TestsModel.Data.CheckTest(){QuestionText = "empty check test"}) {Dock = DockStyle.Top};
            return result;
        }
        public static RadioTestControl GetRadioTestControl()
        {
            var result = new RadioTestControl(new TestsModel.Data.RadioTest() { QuestionText = "empty radio test" }) { Dock = DockStyle.Top };
            return result;
        }
        public static InputTestControl GetInputTestControl()
        {
            var result = new InputTestControl(new TestsModel.Data.InputTest() { QuestionText = "empty input test" }) { Dock = DockStyle.Top };
            return result;
        }
    }
}
